package com.tm.d8_extends_application;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 2024/5/18 Cjj 13:15 老师类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Teacher extends People{

    private String skill;

    public void printInfo(){
        System.out.println(getName()+"具备的技能"+skill);
    }
}
